{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "initial_id",
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": "# 这是一个关于Git的学习总结文件"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": [
    "### Git 分支命令学习 \n",
    "> 不同的分支是平行的世界\n",
    "\n",
    "1. 创建仓库并制定相关分支名称dev：`git init -b dev`\n",
    "2. 查询当前版本库存在的分支数量：`git branch`\n",
    "3. 创建一个新的分支，名称为cs：`git branch cs`\n",
    "4. 将cd分支名称修改为xxx分支：`git branch -m cs xxx`\n",
    "5. 删除名称为xxx的分支：`git branch -d xxx`\n",
    "    `-d`用于删除已合并过的分支，`-D`强制删除分支（不管是否合并）\n",
    "6. 切换当前分支至xxx：`git checkout xxx`\n",
    "7. 查询git日志：`git log`\n",
    "8. 合并dev分支至当前的分支：`git merge dev`\n",
    "9. 创建分支并同时切换过去：`git checkout -b chy`\n"
   ],
   "id": "296d770be4bd4071"
  },
  {
   "metadata": {},
   "cell_type": "markdown",
   "source": "",
   "id": "f1fa38a824b93341"
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
